package com.example.frame.bean;

import java.lang.reflect.Method;

/**
 * 封装 Action 信息
 * @author chenjiebin
 */
public class Handler {
    /** Controller 方法 */
    private Method actionMethod;
    /** Controller 类 */
    private Class<?> controllerClass;

    public Handler() { }

    public Handler(Class<?> controllerClass, Method actionMethod) {
        this.controllerClass = controllerClass;
        this.actionMethod = actionMethod;
    }

    public Class<?> getControllerClass() {
        return controllerClass;
    }

    public Method getActionMethod() {
        return actionMethod;
    }

    @Override
    public String toString() {
        return "Handler{" + "actionMethod=" + actionMethod + ", controllerClass=" + controllerClass + '}';
    }
}
